export function getUrlParam(name) {
  const url = window.location.href
  const search = url.split('?')[1]
  if (!search) return null
 
  const params = new URLSearchParams(search)
  return params.get(name)
} 